//--start 搜索框
Ext.app.SearchField = Ext.extend(Ext.form.TwinTriggerField, {
    initComponent : function(){
        Ext.app.SearchField.superclass.initComponent.call(this);
        this.on('specialkey', function(f, e){
            if(e.getKey() == e.ENTER){
                this.onTrigger1Click();
            }
        }, this);
    },
    validationEvent:false,
    validateOnBlur:false,
    trigger1Class:'x-form-search-trigger',
    trigger2Class:'x-form-arrow-trigger',
    //hideTrigger1:true,
    width:180,
    hasSearch : false,
    paramName : 'query'
});
//--end 搜索框
//
//x-form-clear-trigger
/* ---------- Start 使用demo
var mySrch = new Ext.app.SearchField();
mySrch.onTrigger1Click = function(){
	alert(mySrch.getValue());
}
   ---------- end 使用demo*/